home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts6-06
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: How To Implement Registration Period
- Date: Sat, 09 Mar 96 20:07:05 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4hsodm$rsm@sam.inforamp.net>
- References: <DnyHvE.46F@ranger.daytonoh.attgis.com>
- NNTP-Posting-Host: ts6-06.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <DnyHvE.46F@ranger.daytonoh.attgis.com>,
- Jeff Miko <Jeff.Miko@DaytonOH.ncr.com> wrote:
- >I have built an OLE custom control (OCX) and I would like
- >suggestions on how I can implement a 30 day registration
- >period.
- >I want the control to work for 30 days and then stop.
-
- Alot of people use to use this type of protection when distributing shareware.
- My suggestion is not to use this type, because some hacker almost always
- trick the shareware into thinking the 30 days have not expired. What I do is
- add a function to register the software every month or so.
-
- 1 Everytime you initialize the control, check the system clock.
- 2 If it is not the first day of the month, then goto 5, otherwise
- continue with step 3.
- 3 Display a dialog informing the user that the control is shareware and
- that he must register the software to use it for any purpose other then
- demonstration and testing.
- 4 When the user clicks ok, open the notepad editor (or similar) and
- stuff the registration information into the editor. You could ship a TXT file
- with the OCX and tell the users that they must distribute the TXT with the OCX
- or the OCX won't work.
- 5 Check that all components that should be distributed with your control
- are in the current directly. If the any components are missing or have been
- modified then terminate, otherwise continue with normal processing.
-
- Nobody will distribute this control because it would annoy the hell out of the
- users. But it's convenient because the user then has the opportunity to
- register it. If the programmer does distribute your shareware control, then
- you are basically getting free advertising. Good deal right.
-
- Agrivar
-